package com.ruanko.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.ruanko.entity.DownloadFileBean;
import com.ruanko.entity.UploadFileBean;
import com.ruanko.service.FileService;
import com.ruanko.service.impl.FileServiceImpl;

public class CheckUserFileRecordAction extends ActionSupport {

	private List<UploadFileBean> uploadFileList;
	private List<DownloadFileBean> downloadFileList;
	private FileService fileService;
	
	public CheckUserFileRecordAction() {
		this.fileService = new FileServiceImpl();
	}
	public String CheckFileRecord(){
		try {
			uploadFileList = fileService.getUserUploadFileRecord();
			downloadFileList = fileService.getUserDownloadFileRecord();
			return SUCCESS;
		} catch (Exception e) {
			return ERROR;
		}
	}
	public List<UploadFileBean> getUploadFileList() {
		return uploadFileList;
	}
	public void setUploadFileList(List<UploadFileBean> uploadFileList) {
		this.uploadFileList = uploadFileList;
	}
	public List<DownloadFileBean> getDownloadFileList() {
		return downloadFileList;
	}
	public void setDownloadFileList(List<DownloadFileBean> downloadFileList) {
		this.downloadFileList = downloadFileList;
	}
}
